#ifndef INSTALLPROGRAM_H
#define INSTALLPROGRAM_H

#include <QObject>
#include <QThread>
#include <QTcpServer>
#include <mainwindow.h>

class installprogram : public QMainWindow
{
    Q_OBJECT
public:
    installprogram();
    QString shareUrl = "http://10.0.2.2:8000";
    QTcpServer *tcp;
    QTcpSocket *tcpSocket;
private:
    int RunProgram(QString path);
    void Server();
    bool Download(QString url, QString savePath, QTcpSocket *socket);
};

#endif // INSTALLPROGRAM_H
